package com.example.base_model.room.bean

import androidx.room.Embedded
import androidx.room.Relation

/**
 * @Author jiangKunKun
 * @CreateDate 2025/8/19
 * @Description
 * @SpittingGrooves
 */
data class UserWithPets(
    @Embedded val user: User,           // 嵌入用户信息
    @Relation(
        parentColumn = "id",            // User 的主键
        entityColumn = "userId"         // Pet 的外键
    )
    val pets: List<Pet>                 // 该用户的所有宠物
)
